package com.east.mapper;

import com.east.common.DataFilter;
import com.east.dto.ActivityDTO;
import com.east.entity.Activity;
import com.east.query.ActivityQuery;

import java.util.List;

/**
 * @author eastj
 * @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
 * @createDate 2025-01-17 20:43:35
 * @Entity com.east.entity.Activity
 */
public interface ActivityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    @DataFilter(tableAlias = "ta", fieldName = "owner_id")
    List<ActivityDTO> list(ActivityQuery activityQuery);

    @DataFilter(tableAlias = "ta", fieldName = "owner_id")
    List<ActivityDTO> searchActivityList(ActivityQuery activityQuery);

    ActivityDTO selectIncludeAcNameByPrimaryKey(Integer id);

    int batchDeleteByIds(Integer[] ids);

    List<ActivityDTO> getOnGoingActivity();
    int totalNum();
    int ongoingTotalNum();
}
